// src/router/index.js
import { createRouter, createWebHistory } from 'vue-router'
import demo from'../Views/demo.vue'

// 修改路由配置，将根路由指向一个新的组件而不是App.vue
const routes = [
    {
        path: '/',
       component:demo
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router